package com.easy.dao;

import com.easy.bean.Orderinfo;
import com.easy.bean.Product;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface OrderinfoDao {
    int add(@Param("orderinfo") Orderinfo orderinfo);

    int edit(@Param("orderinfo") Orderinfo orderinfo);

    int delete(@Param("id") int orderinfoid);

    List<Orderinfo> getList(@Param("page") Page page, @Param("text") String text,@Param("orderid")int orderid);

    Orderinfo getOrderinfoById(int orderinfoid);

    int getCount(String text);
}
